package com.example.exam.service;

import com.example.commonutils.ResultData;
import com.example.exam.dto.ExamTopicTchDTO;
import com.example.exam.entity.Exam;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.exam.entity.QueryCondition;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 江晨晖
 * @since 2022-12-15
 */
public interface ExamService extends IService<Exam> {


    ResultData insert(ExamTopicTchDTO examTopicTchDTO, int i);

    ResultData selectByPrimaryKey(int examId);

    ResultData deleteTestPaperById(Integer id);

    ResultData updateByPrimaryKeySelective(ExamTopicTchDTO examTopicTchDTO);

    ResultData stuSelectByPrimaryKey(int examId, HttpServletRequest request);

    ResultData getTestPaper(QueryCondition queryCondition, HttpServletRequest request);
}
